package com.wedata.中台服务;

import cn.hutool.crypto.digest.MD5;
import cn.hutool.json.JSONObject;
import cn.hutool.system.UserInfo;
import com.wedata.HttpUtils;

import java.util.UUID;

public class 健萌服务 {

    public static void main(String[] args) {
        //UserInfo userInfo = new UserInfo();
        queryEvent();
    }

    private static JSONObject queryEvent(){
        JSONObject body = new JSONObject();
        body.set("id", 8192680);
        String sign = MD5.create().digestHex(body +"#5601291336c76762f1d56ce5b45b2419");
        JSONObject header = new JSONObject();
        header.set("X-SIGN",sign);
        header.set("X-TRACEID", UUID.randomUUID());
        header.set("X-APPKEY", "10067615200");
        JSONObject result = HttpUtils.sendPost("https://wedata.gymcity.com.cn/gym/hikyun/event/query", header, body);
        return result;
        //{"code":0,"msg":"操作成功","data":{"projectId":"361013479217840","productCode":"1646638166955231","eventId":"1690871788363288","eventTime":"2025-03-18T15:30:28.000+08:00","eventType":1,"eventCode":"face","eventCodeStr":"人脸比对通过","inOrOut":0,"cardNo":"1127808596743912","personId":"1127808596743912","personName":"biubiubiu","personType":"stranger","personGroupIds":",","picUrl":"https://open.ys7.com/api/lapp/mq/downloadurl?appKey=8fc39169bd3d427385cab3c4909e72b8&fileKey=ISAPI_FILES/J78510767_2_108028/20250318152929914-J78510767-4$encrypt=2,2025-03-18T15:30:28,8d2aef03deb72ccccf25fb496b03ecc1","temperatureStr":"","mask":2,"regionPathName":"健盟测试1","acsPointName":"","devId":"J78510767","devName":"复兴店人脸扫码上课"},"time":1742286756}
    }


}
